package cn.myzqu.start.lambda.entity;


public class Employee {
    private Integer number;
    private String name;
    private Integer age;
    private Rank rank;
    private Gender gender;

    public Employee(Integer number, String name, Integer age, Rank rank, Gender gender) {
        this.number = number;
        this.name = name;
        this.age = age;
        this.rank = rank;
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "number=" + number +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", rank=" + rank +
                '}';
    }

    public static enum Rank {
        MANAGER, PROGRAMMER, TESTER, OPERATOR
    }

    public static enum Gender {
        MALE, FEMALE
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Rank getRank() {
        return rank;
    }

    public void setRank(Rank rank) {
        this.rank = rank;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }
}
